/*
 * Created on 2005-3-31
 *
 */
package com.hd123.rumba.sql;

import java.io.Serializable;

/**
 * @author caili
 */
public class Creteria implements Serializable {

  private static final long serialVersionUID = 300100L;
  private String expression; // 表达式
  private String name; // 名称
  private String type; // 类型, validateFormValue的rule
  private String defaultValue; // 默认值
  private String label; // 显示名称
  private boolean required; // 是否必须的条件
  private String errorMessage; // 错误信息
  private int wildcard = 0;
  private Option[] option; // 可选值

  public int getWildcard() {
    return wildcard;
  }

  public void setWildcard(int wildcard) {
    this.wildcard = wildcard;
  }

  public String getErrorMessage() {
    return errorMessage;
  }

  public void setErrorMessage(String errorMessage) {
    this.errorMessage = errorMessage;
  }

  public boolean isRequired() {
    return required;
  }

  public void setRequired(boolean required) {
    this.required = required;
  }

  public String getDefaultValue() {
    return defaultValue;
  }

  public void setDefaultValue(String defaultValue) {
    this.defaultValue = defaultValue;
  }

  public String getExpression() {
    return expression;
  }

  public void setExpression(String expression) {
    this.expression = expression;
  }

  public String getLabel() {
    return label;
  }

  public void setLabel(String label) {
    this.label = label;
  }

  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  public Option[] getOption() {
    return option;
  }

  public void setOption(Option[] option) {
    this.option = option;
  }

  public String getType() {
    return type;
  }

  public void setType(String type) {
    this.type = type;
  }
}
